//
//  YJCollectionViewCell.h
//  练习
//
//  Created by hcios on 2017/7/5.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YJModel.h"

@class YJCollectionViewCell;

@protocol YJCollectionViewCellDelegate <NSObject>

-(void)gesAuthor:(UITapGestureRecognizer *)ges;

@end


@interface YJCollectionViewCell : UICollectionViewCell

@property (nonatomic,strong) UIImageView *bgImageView;  //背景图片

@property (nonatomic,strong) UILabel *titleLabel;   //标题

@property (nonatomic,strong) UILabel *contentLabel; //副标题

@property (nonatomic,strong) UIImageView *authorImageView;    //作者头像

//头像button
@property (nonatomic, strong)UIButton *imageViewBtn;

@property (nonatomic,strong) YJModel *model;

@property (nonatomic,weak) id<YJCollectionViewCellDelegate>delegate;

-(void)modelWithDict:(NSDictionary *)dict;

@end
